package com.jc.util;

/**
 * 返回类型接口
 * @param <T>
 */
public interface IR<T> {

    Result<T> ok();

    Result<T> ok(T t);

    Result<T> error();

    Result<T> error(String message);

    Result<T> error(Integer code,String message);

    Result<T> error(String message,T t);

    void setRCode(IRCode code);

    void setRCode(IRCode code, T t);

    void setRCode(boolean success, IRCode code, T t);

    void setRCodeWithMsgSuffix(IRCode code, Object msgSuffix);
}
